home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
internet
/
yam_i_dodatki
/
yamnet
/
rexx
/
spot
/
uuencode.spot
< prev
Wrap
Text File
|
1994-03-24
|
1KB
|
47 lines
/* UUEncode (written by Francois Helsen/Marc Duponcheel) */
/* Install as 'UUEncode...' in the ARexx menu. */
/* $VER: UUEncode.spot 1.1 (16.3.94) */
/* Added FSCode support by Marco Amadori */
address spot
options results
cmd.0 = 'C:UUIn' /* Full path to command UUEncode or similar */
cmd.1 = 'C:FSCode' /* Full path to command FSCode */
opt.0 = ''
opt.1 = 'ENCODE'
work = 'T:' /* Work Path */
source = 'Mail:File' /* Standard search path */
'isarealist'
if rc = 0 then do
'requestnotify "Use in message list or from message window!"'
exit
end
'requestresponse TITLE "Encoder selection..." PROMPT "Which Encoder do you wanna use ?" GADGETS "_FSCode|_UUEncode" CENTER'
k = RC
'requestfile TITLE "File to UU/FSEncode" PATH 'source
filename = result
if rc ~= 5 then do
filepart = fp(filename)
address command
cmd.k filename work'CodeFile' opt.k
address spot 'write FILE T:CodeFile'
'Delete >NIL: T:CodeFile'
end
exit /* done here ... */
/* given a filename, return the filepart */
fp:
parse arg filename
return right(filename, length(filename) - max(lastpos("/", filename),lastpos(":", filename)))